//
// Created by Administrator on 2020/6/26.
//嵌套调用：输入两个整数，求平方和。

#include <iostream>
using namespace std;
//fun2函数
int fun2(int m)
{
    return m*m;
}
//fun1函数(其中调用fun2函数)
int fun1(int x,int y)
{
    return fun2(x)+fun2(y);
}
//主函数(其中调用fun1函数)
int main()
{
    int a,b;
    cout<<"Please enter two integers(a and b):";
    cin>>a>>b;
    cout<<"The sum of square of a and b:"<<fun1(a,b)<<endl;
    return 0;
}
